package com.kuang.demo04;

import com.kuang.demo02.UserService;
import com.kuang.demo02.UserServiceImp;

public class Client {
    public static void main(String[] args) {
        UserServiceImp userService = new UserServiceImp();
        ProxyInvoctionHandler pih = new ProxyInvoctionHandler();
        pih.setTarget(userService);
        UserService proxy = (UserService) pih.getProxy();
        proxy.add();
    }
}
